﻿using System;
using SharpObjects.SearchEngine.Common.Search;

namespace SharpObjects.SearchEngine.Common.QueryConstraints
{
    [Serializable]
    public class TextQueryConstraint : IQueryConstraint
    {
        public string Text { get; set; }
        public bool ShowFieldName { get; set; }

        public TextQueryConstraint()
        {
            this.ConstraintId = Guid.NewGuid();
        }

        public override string ToString()
        {
            return this.Text;
        }

        public Guid ConstraintId { get; set; }

    }
}
